import { defineComponent, createVNode, resolveComponent } from 'vue'

export default defineComponent({
  setup() {
    const currentComponent = 'ComponentA'

    return () => (
      <>
        <h1>Multiple elements</h1>
        <p>No need for a root element</p>

        {/* 动态组件 */}
        {createVNode(resolveComponent(currentComponent))}
      </>
    )
  }
})
